package com.huiyou.config;

import org.apache.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Jobs {

    private Logger logger = Logger.getLogger(Jobs.class);

    private final String cron = "00 27 13 * * ?";

    @Scheduled(cron = "00 23 13 * * ?")
    public void cronJob() {
        logger.info("定时任务");
    }




    @Scheduled(cron = cron)
    public void cronJob2() {
        logger.info("定时任务");
    }




}
